package cn.hy.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
// @EnableConfigurationProperties(value = DataBase.class)
@Configuration
@ConfigurationProperties(prefix = "hy.database")
public class DataBase {

    private String url;
    private String username;
    private String password;

}
